<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px 0px">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11" style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class=""><a href="/app/core/vote/sendvote?view=item&voteId=${parameter.voteId}" aria-expanded="false">创建投票项</a></li>
                        <li class="active"><a href="/app/core/vote/sendvote?view=manageitem&voteId=${parameter.voteId}" aria-expanded="true">投票项管理</a></li>
                    </ul>
                    <div class="tab-content tabs-flat" style="padding: 0px;">
                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12" id="itemlistdiv">
                                <a href="/app/core/vote/sendvote?view=manage" class="btn btn-purple" style="float: right;margin: 5px 10px 5px 0px">${i18n('system.back')}</a>
                                <table id="myTable"></table>
                            </div>
                            <div class="col-md-12 col-sm-12 col-xs-12" id="itemdiv" style="display: none;">
                                <div class="row">
                                    <div class="col-md-offset-2 col-md-8 col-sm-12 col-xs-12" style="padding: 0px">
                                        <form class="form-horizontal">
                                            <table class="table table-hover table-striped table-bordered">
                                                <tr>
                                                    <td width="20%">投票标题：</td>
                                                    <td width="80%" id="voteTitle"></td>
                                                </tr>
                                                <tr>
                                                    <td width="20%">${i18n('system.sortNo')}：</td>
                                                    <td width="80%"><input placeholder="${i18n('system.sortNo')}" type="number" name="sortNo" id="sortNo" class="form-control" style="width:150px"></td>
                                                </tr>
                                                <tr>
                                                    <td width="20%">投票项：</td>
                                                    <td width="80%"><input placeholder="投票项" type="text" name="title" id="title" class="form-control"></td>
                                                </tr>
                                                <tr>
                                                    <td width="20%">投票方式：</td>
                                                    <td width="80%"><select style="width: 150px; border-radius: 0px;" id="optType" name="optType" class="form-control">
                                                        <option value="1">单选</option>
                                                        <option value="2">多选</option>
                                                        <option value="3">简述</option>
                                                    </select></td>
                                                </tr>
                                                <tr class="optclass">
                                                    <td colspan="4">投票子项
                                                        <div style="float: right;">
                                                            <a href="javascript:void(0);" class="btn btn-sky btn-xs js-child-item">添加子项</a>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr class="optclass">
                                                    <td colspan="4">
                                                        <table class="table table-hover table-striped table-bordered" id="child-item-table">
                                                            <tr>
                                                                <td width="100px">${i18n('system.sortNo')}</td>
                                                                <td>子项</td>
                                                                <td width="300px">备注</td>
                                                                <td width="100px">操作</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4">备注说明</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4"><textarea rows="5" cols="" class="form-control" id="remark" name="remark"></textarea></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="center"><a id="createbut" href="javascript:void(0);" class="btn btn-primary js-update-save">更&nbsp;&nbsp;新</a> <a href="javascript:void(0);"
                                                                                                                                                                                             class="btn btn-purple js-back-btn" style="margin-left: 20px;">返&nbsp;&nbsp;回</a></td>
                                                </tr>
                                            </table>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript">
    var voteId = "${parameter.voteId}";
</script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/gobal/js/page/oa/voteitemmanage.js"></script>
</body>
</html>
